import data from './data.json'
function getdata() {
    return new Promise((resolve) => {
        //    return resolve(graph)
        setTimeout(() => {
            const nodes = [];
            const links = [];
            for (let i = 0; i < 100; i++) {
                const category = i % 4;

                nodes.push({
                    id: `${i}`,
                    r: 4
                })
                links.push({
                    "source":`${i}`,
                    "target":`${i}`,
                    "type": "licensing",
                    "r": 4
                })
            }
            // resolve(data)
            resolve({
                nodes,
                links
            })
        }, 0)
    })
}

export default getdata